package com.hczt.xhminiapp.appapi.weixin.dto;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author 红创-马海强
 * @date 2019-03-07 16:35
 * @description
 */
@Component
@ConfigurationProperties(prefix = "wx" )
@PropertySource("classpath:config/wx-config.yml")
@Data
public class WxProperties {
    /**
     * 医生端--微信小程序APPID
     */
    @Value("${doctor_appid}")
    private String doctorAppid;

    /**
     * 医生端--微信小程序密钥
     */
    @Value("${doctor_secret}")
    private String doctorSecret;


    /**
     * 患者端--微信小程序APPID
     */
    @Value("${patient_appid}")
    private String patientAppid;

    /**
     * 患者端--微信小程序密钥
     */
    @Value("${patient_secret}")
    private String patientSecret;
}
